<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
           <link type="text/css" rel="stylesheet" href="http://localhost/company01/static/css/base.css"/>
            <link type="text/css" rel="stylesheet" href="http://localhost/company01/hdcms/admin/tpl/public/style1/css/config.css"/>
            <link type="text/css" href="http://localhost/company01/static/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
            <script type="text/javascript" src="http://localhost/company01/static/ui/js/jquery-1.8.0.min.js"></script>
            <script type="text/javascript" src="http://localhost/company01/static/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
            <script type="text/javascript">
                $(function(){
                    $("#tabs").tabs({selected:<?php echo isset($_GET['tabid'])?$_GET['tabid']:0?>});
                })
            </script>

    </head>
    <body style="padding:10px;"
          <div class="path">
            <strong>您现在的位置：</strong>
            修改配置项
        </div>
        <form action="http://localhost/company01/index.php/admin/config/set_config_save" method="post">
         
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-0">网站基本信息</a></li>
                    <li><a href="#tabs-1">验证码</a></li>
                    <li><a href="#tabs-2">图片水印</a></li>
                    <li><a href="#tabs-3">文件上传</a></li>
                    <li><a href="#tabs-4">邮件服务</a></li>
                    <li><a href="#tabs-5">短消息</a></li>
                </ul>
                <div id="tabs-0">   
                    <table class="table2 config">
                        <thead>
                            <tr>
                                <td>参数说明</td>
                                <td>参数值</td>
                                <td>使用说明</td>
                                <td>模板调用方式</td>
                            </tr>
                        </thead>
                        <?php if(!empty($config[1])){$listCount = count($config[1]);$list_id=0;?><?php foreach($config[1] as $key=>$v){?>
                            <?php echo $v['html'];?>
                        <?php $list_id+=1;?><?php }?><?php }?> 
                    </table>
                </div>

                <div id="tabs-1">
                    <table class="table2 config">
                        <thead>
                            <tr>
                                <td>参数说明</td>
                                <td>参数值</td>
                                <td>使用说明</td>
                                <td>模板调用方式</td>
                            </tr>
                        </thead>
                        <?php if(!empty($config[2])){$listCount = count($config[2]);$list_id=0;?><?php foreach($config[2] as $key=>$v){?>
                            <?php echo $v['html'];?>
                        <?php $list_id+=1;?><?php }?><?php }?> 
                    </table>
                </div>

                 <div id="tabs-2">
                    <table class="table2 config">
                        <thead>
                            <tr>
                                <td>参数说明</td>
                                <td>参数值</td>
                                <td>使用说明</td>
                                <td>模板调用方式</td>
                            </tr>
                        </thead>
                        <?php if(!empty($config[3])){$listCount = count($config[3]);$list_id=0;?><?php foreach($config[3] as $key=>$v){?>
                            <?php echo $v['html'];?>
                        <?php $list_id+=1;?><?php }?><?php }?> 
                    </table>
                </div>
                <div id="tabs-3">
                    <table class="table2 config">
                        <thead>
                            <tr>
                                <td>参数说明</td>
                                <td>参数值</td>
                                <td>使用说明</td>
                                <td>模板调用方式</td>
                            </tr>
                        </thead>
                        <?php if(!empty($config[4])){$listCount = count($config[4]);$list_id=0;?><?php foreach($config[4] as $key=>$v){?>
                            <?php echo $v['html'];?>
                        <?php $list_id+=1;?><?php }?><?php }?> 
                    </table>
                </div>
                <div id="tabs-4">
                    <table class="table2 config">
                        <thead>
                            <tr>
                                <td>参数说明</td>
                                <td>参数值</td>
                                <td>使用说明</td>
                                <td>模板调用方式</td>
                            </tr>
                        </thead>
                        <?php if(!empty($config[5])){$listCount = count($config[5]);$list_id=0;?><?php foreach($config[5] as $key=>$v){?>
                            <?php echo $v['html'];?>
                        <?php $list_id+=1;?><?php }?><?php }?> 
                    </table>
                </div>
                <div id="tabs-5">

                </div>
                <div style="padding-left:100px;">
                    <input type="submit" value="修改配置项" class="submit"/>
                </div>
            </div>
        </form>
    </body>
</html>
